package com.deng.common.vo
{
	import com.deng.common.model.CommonModelLocator;
	
	import mx.collections.ArrayCollection;
	
	[Bindable]
   	[RemoteClass(alias="com.deng.common.vo.OrganizationVo")]	
	public class OrganizationVo
	{
		public function OrganizationVo()
		{
		}
		public function get2StepName():String{
			for(var i:int = 0;i < CommonModelLocator.getInstance().organizationTable.length;i++){
				var tmpVo:OrganizationVo = CommonModelLocator.getInstance().organizationTable.getItemAt(i) as OrganizationVo;
				if(tmpVo.id == parent_id){
					return tmpVo.name+"-"+name;
				}
			}
			return "";
		}
		public var id:int;
		public var name:String;
		public var parent_id:int;
		public var is_leaf:int;		
		public var item_id:int;
		public var item_name:String;
		public var isDef:int;
//		public var performance_type:int;
//		public var performance_name:String;
//		public var function_name:String;
		
		public var child_organization_arr:ArrayCollection;
		public var employee_arr:ArrayCollection;
		public var price_item_arr:ArrayCollection;
		
		public var base_bonus_function:String;
		public var base_bonus_function_detail:String;
		public var organization_vs_performance_arr:ArrayCollection = new ArrayCollection;
		
		public var newCode:String;
		public var duty_id:int;
		public var full_name:String;
		public var duty_name:String;
		public var selected:int;
		public var dispense_id:int;
		public var operate_id:int;
		public var type:String;
		
		public var ruled:int;
		
	}
}